package com.qm.console.dao.mapper;

import com.qm.console.dao.model.IllegalRecordDO;
import com.qm.console.pubdef.dto.user.IllegalRecordQueryDTO;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IllegalRecordDOMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(IllegalRecordDO record);

    int insertSelective(IllegalRecordDO record);

    IllegalRecordDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(IllegalRecordDO record);

    int updateByPrimaryKey(IllegalRecordDO record);

    List<IllegalRecordDO> listNeedNotify();

    void setAllNotified();

    List<IllegalRecordDO> list(IllegalRecordQueryDTO query);

    int count(IllegalRecordQueryDTO query);

    void setRead(@Param("ids") List<Integer> ids);

    List<IllegalRecordDO> userIllegalCount(@Param("uids") String uids);
}